package com.example.service;

import java.util.List;
import java.util.Map;

import com.example.domain.DeptDBEntity;
import com.example.domain.EmailEntity;

public interface EmailService {
	/**
	 * 获取token信息,如果缓存中有从缓存中获取，如果缓存中没有调用接口获取
	 */
	public String queryToken();
	/**
	 * 获取token信息,直接调用接口获取
	 */
	public String queryTokenByEmail();
	
	public List<EmailEntity> queryAllUserByDB();
	
	public List<EmailEntity> queryAllUserByEmail();
	
	public EmailEntity queryOAPersonByWorkcode(String workcode);
	
	public Map<String, String> queryDeptMap();
	
	public List<EmailEntity> test();
	
	
	public List<EmailEntity> test2();
	
	public List<DeptDBEntity> getDeptTreeList();
}

